﻿@model NapCardOnline.Models.Recharge

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Recharge</legend>

        @Html.HiddenFor(model => model.RechargeID)

        <div class="editor-label">
            @Html.LabelFor(model => model.RechargeNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RechargeNo)
            @Html.ValidationMessageFor(model => model.RechargeNo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RechargeAmount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RechargeAmount)
            @Html.ValidationMessageFor(model => model.RechargeAmount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.YourBankAccountNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.YourBankAccountNumber)
            @Html.ValidationMessageFor(model => model.YourBankAccountNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RechargeDesc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RechargeDesc)
            @Html.ValidationMessageFor(model => model.RechargeDesc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_RechargeTypeID, "RechargeType")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_RechargeTypeID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_RechargeTypeID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_BankAccountCompanyID, "BankAccountCompany")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_BankAccountCompanyID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_BankAccountCompanyID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_BankID, "Bank")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_BankID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_BankID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_UserID, "User")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_UserID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_UserID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RechargeDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RechargeDate)
            @Html.ValidationMessageFor(model => model.RechargeDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsDelete)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsDelete)
            @Html.ValidationMessageFor(model => model.IsDelete)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsActive)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsActive)
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
